﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MusicSite.Views.Content.User.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Login</title>
    <link href="../../../Content/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
    <div class="page">
        <div id="header">
            
            
        </div>

        <div id="main">
            <h2>Log in please</h2>
            <div>
            <asp:Label ID="invalidLogin" runat="server" EnableViewState="false" CssClass="error"
                Text=""></asp:Label>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lbl1" runat="server" Text="Login:" AssociatedControlID="login"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="login" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="validatorLogin" runat="server"
                            ControlToValidate="login" ErrorMessage="***Enter login please"/>
                        <br />
                        <asp:CustomValidator ID="validatorLogin2" runat="server"
                            ControlToValidate="login" ErrorMessage="***Login can't be more than 30 symbols"
                            OnServerValidate="ValidateLength"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbl2" runat="server" Text="Password:" AssociatedControlID="password"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="password" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="validatorPass" runat="server"
                            ControlToValidate="password" ErrorMessage="***Enter password please"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center">
                        <asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="LoginActionClick"/>
                        
                    </td>
                </tr>
            </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>
